﻿
//Author: 张亚涛
//createtime:2011-10-13 10:41:57
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{

    /// <summary>
    /// 该类提供了一系列操作 "CouponsTrade" 表的方法;
    /// </summary>
    public partial class CouponsTradeService
    {
        #region .对本表的维护.
        /// <summary>
        /// 根据CouponsTrade表的tradeNo字段返回数据  
        /// </summary>
        /// <param name="tradeNo">tradeNo</param>
        /// <returns></returns>        
        public static CouponsTrade GetCouponsTradeByTradeNo(string tradeNo)
        {
            return CouponsTradeBase.GetCouponsTradeByTradeNo(tradeNo);
        }
        /// <summary>
        /// 根据微信交易订单号返回已更新数据条数
        /// </summary>
        /// <param name="PayNo">微信微信交易订单号</param>
        /// <returns></returns>        
        public static int GetTradeCount(string PayNo)
        {
            return CouponsTradeBase.GetTradeCount(PayNo);
        }

        #endregion

        #region .SQL语句汇总.
        /// <summary>
        /// 返回CouponsTrade表的所有数据（SQL语句） 
        /// </summary>
        /// <returns></returns>        
        public static string GetAllCouponsTrade_SQL(string tradeNo)
        {
            return CouponsTradeBase.GetAllCouponsTrade_SQL(tradeNo);
        }
        #endregion
    }
}